package net.office.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class StaffTrainExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StaffTrainExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andStaffTrainIdIsNull() {
            addCriterion("staff_train_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdIsNotNull() {
            addCriterion("staff_train_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdEqualTo(Integer value) {
            addCriterion("staff_train_Id =", value, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdNotEqualTo(Integer value) {
            addCriterion("staff_train_Id <>", value, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdGreaterThan(Integer value) {
            addCriterion("staff_train_Id >", value, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_train_Id >=", value, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdLessThan(Integer value) {
            addCriterion("staff_train_Id <", value, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_train_Id <=", value, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdIn(List<Integer> values) {
            addCriterion("staff_train_Id in", values, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdNotIn(List<Integer> values) {
            addCriterion("staff_train_Id not in", values, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_train_Id between", value1, value2, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffTrainIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_train_Id not between", value1, value2, "staffTrainId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNull() {
            addCriterion("staff_Id is null");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNotNull() {
            addCriterion("staff_Id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIdEqualTo(Integer value) {
            addCriterion("staff_Id =", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("staff_Id <>", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThan(Integer value) {
            addCriterion("staff_Id >", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_Id >=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThan(Integer value) {
            addCriterion("staff_Id <", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_Id <=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIn(List<Integer> values) {
            addCriterion("staff_Id in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("staff_Id not in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_Id between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_Id not between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffNoIsNull() {
            addCriterion("staff_no is null");
            return (Criteria) this;
        }

        public Criteria andStaffNoIsNotNull() {
            addCriterion("staff_no is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNoEqualTo(String value) {
            addCriterion("staff_no =", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotEqualTo(String value) {
            addCriterion("staff_no <>", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoGreaterThan(String value) {
            addCriterion("staff_no >", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoGreaterThanOrEqualTo(String value) {
            addCriterion("staff_no >=", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLessThan(String value) {
            addCriterion("staff_no <", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLessThanOrEqualTo(String value) {
            addCriterion("staff_no <=", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoLike(String value) {
            addCriterion("staff_no like", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotLike(String value) {
            addCriterion("staff_no not like", value, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoIn(List<String> values) {
            addCriterion("staff_no in", values, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotIn(List<String> values) {
            addCriterion("staff_no not in", values, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoBetween(String value1, String value2) {
            addCriterion("staff_no between", value1, value2, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNoNotBetween(String value1, String value2) {
            addCriterion("staff_no not between", value1, value2, "staffNo");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNull() {
            addCriterion("staff_name is null");
            return (Criteria) this;
        }

        public Criteria andStaffNameIsNotNull() {
            addCriterion("staff_name is not null");
            return (Criteria) this;
        }

        public Criteria andStaffNameEqualTo(String value) {
            addCriterion("staff_name =", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotEqualTo(String value) {
            addCriterion("staff_name <>", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThan(String value) {
            addCriterion("staff_name >", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("staff_name >=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThan(String value) {
            addCriterion("staff_name <", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLessThanOrEqualTo(String value) {
            addCriterion("staff_name <=", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameLike(String value) {
            addCriterion("staff_name like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotLike(String value) {
            addCriterion("staff_name not like", value, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameIn(List<String> values) {
            addCriterion("staff_name in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotIn(List<String> values) {
            addCriterion("staff_name not in", values, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameBetween(String value1, String value2) {
            addCriterion("staff_name between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffNameNotBetween(String value1, String value2) {
            addCriterion("staff_name not between", value1, value2, "staffName");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateIsNull() {
            addCriterion("staff_train_start_date is null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateIsNotNull() {
            addCriterion("staff_train_start_date is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateEqualTo(Date value) {
            addCriterionForJDBCDate("staff_train_start_date =", value, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("staff_train_start_date <>", value, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateGreaterThan(Date value) {
            addCriterionForJDBCDate("staff_train_start_date >", value, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_train_start_date >=", value, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateLessThan(Date value) {
            addCriterionForJDBCDate("staff_train_start_date <", value, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_train_start_date <=", value, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateIn(List<Date> values) {
            addCriterionForJDBCDate("staff_train_start_date in", values, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("staff_train_start_date not in", values, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_train_start_date between", value1, value2, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainStartDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_train_start_date not between", value1, value2, "staffTrainStartDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateIsNull() {
            addCriterion("staff_train_end_date is null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateIsNotNull() {
            addCriterion("staff_train_end_date is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateEqualTo(Date value) {
            addCriterionForJDBCDate("staff_train_end_date =", value, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("staff_train_end_date <>", value, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateGreaterThan(Date value) {
            addCriterionForJDBCDate("staff_train_end_date >", value, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_train_end_date >=", value, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateLessThan(Date value) {
            addCriterionForJDBCDate("staff_train_end_date <", value, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("staff_train_end_date <=", value, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateIn(List<Date> values) {
            addCriterionForJDBCDate("staff_train_end_date in", values, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("staff_train_end_date not in", values, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_train_end_date between", value1, value2, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainEndDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("staff_train_end_date not between", value1, value2, "staffTrainEndDate");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitIsNull() {
            addCriterion("staff_train_unit is null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitIsNotNull() {
            addCriterion("staff_train_unit is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitEqualTo(String value) {
            addCriterion("staff_train_unit =", value, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitNotEqualTo(String value) {
            addCriterion("staff_train_unit <>", value, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitGreaterThan(String value) {
            addCriterion("staff_train_unit >", value, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitGreaterThanOrEqualTo(String value) {
            addCriterion("staff_train_unit >=", value, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitLessThan(String value) {
            addCriterion("staff_train_unit <", value, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitLessThanOrEqualTo(String value) {
            addCriterion("staff_train_unit <=", value, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitLike(String value) {
            addCriterion("staff_train_unit like", value, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitNotLike(String value) {
            addCriterion("staff_train_unit not like", value, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitIn(List<String> values) {
            addCriterion("staff_train_unit in", values, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitNotIn(List<String> values) {
            addCriterion("staff_train_unit not in", values, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitBetween(String value1, String value2) {
            addCriterion("staff_train_unit between", value1, value2, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainUnitNotBetween(String value1, String value2) {
            addCriterion("staff_train_unit not between", value1, value2, "staffTrainUnit");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentIsNull() {
            addCriterion("staff_train_content is null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentIsNotNull() {
            addCriterion("staff_train_content is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentEqualTo(String value) {
            addCriterion("staff_train_content =", value, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentNotEqualTo(String value) {
            addCriterion("staff_train_content <>", value, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentGreaterThan(String value) {
            addCriterion("staff_train_content >", value, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentGreaterThanOrEqualTo(String value) {
            addCriterion("staff_train_content >=", value, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentLessThan(String value) {
            addCriterion("staff_train_content <", value, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentLessThanOrEqualTo(String value) {
            addCriterion("staff_train_content <=", value, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentLike(String value) {
            addCriterion("staff_train_content like", value, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentNotLike(String value) {
            addCriterion("staff_train_content not like", value, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentIn(List<String> values) {
            addCriterion("staff_train_content in", values, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentNotIn(List<String> values) {
            addCriterion("staff_train_content not in", values, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentBetween(String value1, String value2) {
            addCriterion("staff_train_content between", value1, value2, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainContentNotBetween(String value1, String value2) {
            addCriterion("staff_train_content not between", value1, value2, "staffTrainContent");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonIsNull() {
            addCriterion("staff_train_apply_reason is null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonIsNotNull() {
            addCriterion("staff_train_apply_reason is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonEqualTo(String value) {
            addCriterion("staff_train_apply_reason =", value, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonNotEqualTo(String value) {
            addCriterion("staff_train_apply_reason <>", value, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonGreaterThan(String value) {
            addCriterion("staff_train_apply_reason >", value, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonGreaterThanOrEqualTo(String value) {
            addCriterion("staff_train_apply_reason >=", value, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonLessThan(String value) {
            addCriterion("staff_train_apply_reason <", value, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonLessThanOrEqualTo(String value) {
            addCriterion("staff_train_apply_reason <=", value, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonLike(String value) {
            addCriterion("staff_train_apply_reason like", value, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonNotLike(String value) {
            addCriterion("staff_train_apply_reason not like", value, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonIn(List<String> values) {
            addCriterion("staff_train_apply_reason in", values, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonNotIn(List<String> values) {
            addCriterion("staff_train_apply_reason not in", values, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonBetween(String value1, String value2) {
            addCriterion("staff_train_apply_reason between", value1, value2, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyReasonNotBetween(String value1, String value2) {
            addCriterion("staff_train_apply_reason not between", value1, value2, "staffTrainApplyReason");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultIsNull() {
            addCriterion("staff_train_apply_result is null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultIsNotNull() {
            addCriterion("staff_train_apply_result is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultEqualTo(Integer value) {
            addCriterion("staff_train_apply_result =", value, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultNotEqualTo(Integer value) {
            addCriterion("staff_train_apply_result <>", value, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultGreaterThan(Integer value) {
            addCriterion("staff_train_apply_result >", value, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_train_apply_result >=", value, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultLessThan(Integer value) {
            addCriterion("staff_train_apply_result <", value, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultLessThanOrEqualTo(Integer value) {
            addCriterion("staff_train_apply_result <=", value, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultIn(List<Integer> values) {
            addCriterion("staff_train_apply_result in", values, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultNotIn(List<Integer> values) {
            addCriterion("staff_train_apply_result not in", values, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultBetween(Integer value1, Integer value2) {
            addCriterion("staff_train_apply_result between", value1, value2, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainApplyResultNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_train_apply_result not between", value1, value2, "staffTrainApplyResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultIsNull() {
            addCriterion("staff_train_result is null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultIsNotNull() {
            addCriterion("staff_train_result is not null");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultEqualTo(Integer value) {
            addCriterion("staff_train_result =", value, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultNotEqualTo(Integer value) {
            addCriterion("staff_train_result <>", value, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultGreaterThan(Integer value) {
            addCriterion("staff_train_result >", value, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_train_result >=", value, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultLessThan(Integer value) {
            addCriterion("staff_train_result <", value, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultLessThanOrEqualTo(Integer value) {
            addCriterion("staff_train_result <=", value, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultIn(List<Integer> values) {
            addCriterion("staff_train_result in", values, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultNotIn(List<Integer> values) {
            addCriterion("staff_train_result not in", values, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultBetween(Integer value1, Integer value2) {
            addCriterion("staff_train_result between", value1, value2, "staffTrainResult");
            return (Criteria) this;
        }

        public Criteria andStaffTrainResultNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_train_result not between", value1, value2, "staffTrainResult");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}